package com.fs.sw.controller;

import com.fs.sw.dao.UsersRepository;
import com.fs.sw.pojo.Roles;
import com.fs.sw.pojo.Users;
import com.fs.sw.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class TransactionalController {

    @Autowired
    IUserService userService;

    @GetMapping("/getUser")
    public void getUser(HttpServletRequest request){
        userService.testTransactional();

    }
}
